﻿
using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5;

/// <summary>
/// Represents a &lt;a> element for pagination component.
/// </summary>
[HtmlTag("a")]
[CssClass("page-link")]
public class PageLink:BootstrapChildContentWithChildCascadingComponentBase<PageLink,Pagination>
{
    /// <summary>
    /// Sets the tag name to be <c>&lt;span></c> element.
    /// </summary>
    [Parameter] public bool Texted { get; set; }

    protected override string GetHtmlTagName()
    {
        if (Texted)
        {
            return "span";
        }
        return base.GetHtmlTagName();
    }
}
